package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CondolencePaymentsMapper;
import com.ruoyi.system.domain.CondolencePayments;
import com.ruoyi.system.service.ICondolencePaymentsService;

/**
 * 慰问金申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-16
 */
@Service
public class CondolencePaymentsServiceImpl implements ICondolencePaymentsService 
{
    @Autowired
    private CondolencePaymentsMapper condolencePaymentsMapper;

    /**
     * 查询慰问金申请
     * 
     * @param id 慰问金申请主键
     * @return 慰问金申请
     */
    @Override
    public CondolencePayments selectCondolencePaymentsById(Long id)
    {
        return condolencePaymentsMapper.selectCondolencePaymentsById(id);
    }

    /**
     * 查询慰问金申请列表
     * 
     * @param condolencePayments 慰问金申请
     * @return 慰问金申请
     */
    @Override
    public List<CondolencePayments> selectCondolencePaymentsList(CondolencePayments condolencePayments)
    {
        return condolencePaymentsMapper.selectCondolencePaymentsList(condolencePayments);
    }

    /**
     * 新增慰问金申请
     * 
     * @param condolencePayments 慰问金申请
     * @return 结果
     */
    @Override
    public int insertCondolencePayments(CondolencePayments condolencePayments)
    {
        return condolencePaymentsMapper.insertCondolencePayments(condolencePayments);
    }

    /**
     * 修改慰问金申请
     * 
     * @param condolencePayments 慰问金申请
     * @return 结果
     */
    @Override
    public int updateCondolencePayments(CondolencePayments condolencePayments)
    {
        return condolencePaymentsMapper.updateCondolencePayments(condolencePayments);
    }

    /**
     * 批量删除慰问金申请
     * 
     * @param ids 需要删除的慰问金申请主键
     * @return 结果
     */
    @Override
    public int deleteCondolencePaymentsByIds(Long[] ids)
    {
        return condolencePaymentsMapper.deleteCondolencePaymentsByIds(ids);
    }

    /**
     * 删除慰问金申请信息
     * 
     * @param id 慰问金申请主键
     * @return 结果
     */
    @Override
    public int deleteCondolencePaymentsById(Long id)
    {
        return condolencePaymentsMapper.deleteCondolencePaymentsById(id);
    }
}
